<div class="popup"  id="answer_pop" style="display: none">
    <div class="popupBody pop-answer">
        <div class="popupDiv1">
            <a class="fullScreen" href="javascript:;"
               onclick="$('#answer_pop').children('.pop-answer').toggleClass('is-full-screen')">
                <span class="nofull-screen-data">
                      <img src='../public/images/popUp_big.png' class="mr5 vmiddle fleft">全屏化
                </span>
                <span class="full-screen-data">
                     <img src='../public/images/scale.jpg' class="mr5 vmiddle fleft">返回
                </span>
            </a>
            <b>互助问答</b>
            <i onclick="$('#answer_pop').toggle()"><img src="../public/images/close.jpg"></i>
        </div>
        <div class="answer-list">
            <dl>
                <dd class="require full-screen-data" style="line-height:46px;">问答标题</dd>
                <dt>
                    <input type="text" class="input input-dark" id="title" style="width: 100%;font-size:18px;"
                           placeholder="请输入提问标题" maxlength="80">
                    <div class="mt10">
                        <div>
                            <ul class="iblock" id="selectedCovers"></ul>
                            <script id="selectedCovers_tpl" type="text/html">
                                <%each list as arr i%>
                                <li class="covers-item" data-id="<%arr.id%>">
                                    <img class="covers-img" src="<%=imgPath(arr.url)%>" alt="">
                                    <a href="javascript:;" class="del" data-index="<%i%>"
                                       onclick="BASE.POPUP.removeCover(this)">删除</a>
                                </li>
                                <%/each%>
                            </script>
                            <span class="add-icon" onclick="BASE.POPUP.uploadCoverPrev(this)">封面</span>
                            <input type="file" class="hide" multiple onchange="BASE.POPUP.uploadCover(this)">
                            <select id="coversCategory" class="select fright clo6"
                                    onchange="BASE.POPUP.getCoversByCategory($('#coversCategory option:selected').val())"></select>
                            <script id="coversCategory_tpl" type="text/html">
                                <option value="">选择分类</option>
                                <%each data as arr i%>
                                <option value="<%arr.id%>" data-parentid="<%arr.parentId%>"><%arr.name%></option>
                                <%/each%>
                            </script>
                        </div>
                       <div class="mt10 covers-wrap-flex">
                           <ul class="covers-wrap" id="answerCovers"></ul>
                           <script id="answerCovers_tpl" type="text/html">
                               <%if list.length>0%>
                                   <%each list as arr i%>
                                   <li class="covers-item" data-id="<%arr.id%>"
                                       data-url="<%arr.url%>" onclick="BASE.POPUP.selectCovers(this)">
                                       <img class="covers-img" src="<%=imgPath(arr.url)%>" alt="">
                                   </li>
                                   <%/each%>
                                   <li class="covers-item change"
                                        onclick="BASE.POPUP.getCoversByCategory($('#coversCategory option:selected').val())">换一批</li>
                               <%/if%>
                           </script>
                       </div>
                    </div>
                </dt>
            </dl>
            <dl>
                <dd class="require full-screen-data">问答内容</dd>
                <dt class="edtior-wrap relative">
                    <div id="editorContentAnswer"></div>
                </dt>
            </dl>
           <!-- <dl>
                <dd class="require">问答类型</dd>
                <dt>
                    <button class="answer-btn mr10 btnStyleS hover">互助问答</button>
                    <button class="answer-btn mr10 btnStyleS">快速提问</button>
                    <button class="answer-btn mr10 btnStyleS">达人问答</button>
                    <button class="answer-btn mr10 btnStyleS">悬赏求助</button>
                </dt>
            </dl>-->
            <!--<div style="padding-bottom: 15px">
                <img src="../public/images/headset.jpg" class="vmiddle"> 联系客服
            </div>-->
            <dl>
                <dd class="require">所属领域</dd>
                <dt>
                    <select class="select clo6 nofull-screen-data" id="interestData"
                            style="width: 190px;"
                            onchange="BASE.POPUP.selectInterestPrarent($('#interestData option:selected').val())"></select>
                    <script id="interestData_tpl" type="text/html">
                        <option value="">所属领域</option>
                        <%each data as arr i%>
                        <option value="<%arr.id%>" data-parentid="<%arr.parentId%>"><%arr.name%></option>
                        <%/each%>
                    </script>
                    <div class="full-screen-data" id="interestData_btn">></div>
                    <script id="interestData_btn_tpl" type="text/html">
                        <%each data as arr i%>
                        <button id="parent_<%arr.id%>" class="answer-btn mr10 btnStyleS"
                                onclick="BASE.POPUP.selectInterestPrarent('<%arr.id%>')"
                                data-id="<%arr.id%>"><%arr.name%></button>
                        <%/each%>
                    </script>
                </dt>
            </dl>
            <dl>
                <dd class="nrequire">所属分类</dd>
                <dt>
                    <select  class="select clo6 nofull-screen-data" id="interestChildData"
                             style="width: 190px;"
                             onchange="BASE.POPUP.selectInterestChild($('#interestChildData option:selected').val())"></select>
                    <script id="interestChildData_tpl" type="text/html">
                        <option value="">所属分类</option>
                        <%each data as arr i%>
                        <option value="<%arr.id%>"><%arr.name%></option>
                        <%/each%>
                    </script>
                    <div class="full-screen-data" id="interestChildData_btn">></div>
                    <script id="interestChildData_btn_tpl" type="text/html">
                        <%each data as arr i%>
                        <button id="child_<%arr.id%>" class="answer-btn mr10 btnStyleS"
                                onclick="BASE.POPUP.selectInterestChild('<%arr.id%>')"
                                data-id="<%arr.id%>"><%arr.name%></button>
                        <%/each%>
                    </script>
                </dt>
            </dl>
            <!--<dl>
                <dd class="nrequire">悬赏金额(选填)</dd>
                <dt>
                    <input class="input clo6" type="number" style="width: 190px;" id="" placeholder="悬赏金额有助于回答">
                    <label for="yuan" class="ml20">
                        <input type="radio" id="yuan" name="currency" class="radio">人民币
                    </label>
                    <label for="jinbi" class="ml10">
                        <input type="radio" id="jinbi" name="currency" class="radio">金币
                    </label>
                </dt>
            </dl>-->
            <dl class="answer-modify-hide">
                <dd class="nrequire">红包个数</dd>
                <dt>
                    <input class="input clo6" id="maxGoodCount" type="number" style="width: 190px;"
                           placeholder="可以设置最佳答案">
                    <span class="ml20">
                        单个金额
                         <input class="input clo6 ml10" id="unitPrice" type="number" style="width: 190px;"
                                placeholder="发红包有助于回答">
                    </span>
                    <div class="red font12 mt5">红包一旦发出，不可收回</div>
                </dt>
            </dl>
            <div class="center mt30">
                <button class="common-btn blue-change-btn answer-modify-hide"
                        onclick="BASE.ANSWER.addQuestion(this)">确认</button>
                <button class="common-btn blue-change-btn answer-modify-show"
                        onclick="BASE.ANSWER_CONTENT.modifyQuestion(this)">确认修改</button>
            </div>
        </div>
    </div>
</div>